package demo1;

public class Phone {
    public String name;
    private int storage;
    private String chip;
    String color;

    public Phone(String name, int storage, String chip, String color){
        this.name = name;
        this.storage = storage;
        this.chip = chip;
        this.color = color;
    }

    public void setStorage(int storage){
        this.storage = storage;
    }

    public void setChip(String chip){
        this.chip = chip;
    }

    public int getStorage() {
        return storage;
    }

    public String getChip() {
        return chip;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "name='" + name + '\'' +
                ", storage=" + storage +
                ", chip='" + chip + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
